package cn.tqfeiyang.smartadmin.business.organization.request;

import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.tqfeiyang.smartadmin.commons.pagination.*;
import lombok.Data;

import cn.tqfeiyang.smartadmin.business.organization.response.EmployeeQueryVO;

/**
 * 员工查询请求
 *
 * @author tqfeiyang
 * @since 2024-10-18
 */
@Data
public class EmployeeQueryDTO extends PageParams {

    /**
     * 排序字段
     */
    @Schema(description = "排序字段")
    private EmployeeQueryVO.Fields orderBy = EmployeeQueryVO.Fields.name;

    /**
     * 排序方式 asc：升序，desc：降序
     */
    @Schema(description = "排序方式 asc：升序，desc：降序")
    private OrderDirection direction = OrderDirection.asc;

    /**
     * 关键字
     */
    @Schema(description = "关键字")
    private String keywords;

    /**
     * 名称
     */
    @Schema(description = "名称")
    private String name;

    /**
     * 登录账号
     */
    @Schema(description = "登录账号")
    private String loginName;

    /**
     * 昵称
     */
    @Schema(description = "昵称")
    private String nickName;

    /**
     * 电子邮件
     */
    @Schema(description = "电子邮件")
    private String email;

    /**
     * 电话
     */
    @Schema(description = "电话")
    private String phone;

    /**
     * 是否可用？
     */
    @Schema(description = "是否可用？")
    private Boolean status;

    /**
     * 部门id
     */
    @Schema(description = "部门id")
    private Long departmentId;

    /**
     * 是否管理员？
     */
    @Schema(description = "是否管理员？")
    private Boolean admin;
}